cf8f5793a417d0db3d9b64f218caa7e223b1bfc7,simulator/src/main/java/com/hazelcast/simulator/common/SimulatorProperties.java,SimulatorProperties,get,#String#String#,211
Before Change
}
public String get(String name, String defaultValue) {
String value = System.getProperty(name);
if (value != null) {
return value;
}
After Change
// then we check system properties
if (result == null) {
result = System.getProperty(name);
}
// then we check environment
// checking environment is useful for external configuration of simulator properties using exported variables
if (result == null) {
result = System.getenv(name);
}
// then we check the default value from the simulator.properties from the distribution
if (result == null && value != null) {
result = value.text;
}